package com.coursehub.course.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 课程学生关联复合主键
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Embeddable
public class CourseStudentId implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @Column(name = "course_id", nullable = false, length = 100)
    private String courseId;
    
    @Column(name = "user_id", nullable = false, length = 100)
    private String userId;
}